<?php
/**
 *      [Elitechmedia!] (C)2001-2099 MYSELF Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: del_parts.php 22609 2013-10-16 01:55:33Z zhangchaofeng
 */
if(!isset($_SESSION)){
	session_start();
}
if(!$_SESSION['uid']){
	require_once "tmp/404.htm";exit;
}
include_once("classes/DB.class.php");
include_once("classes/page.class.php");
include_once("function/member.php");
include_once("qrlib.php");
include_once("function/function_file.php");
include_once("function/util.func.php");
$id=addslashes($_REQUEST['id']);
if($id!=''):
$GLOBALS["DB"]->execute("DELETE FROM parts WHERE id=$id");
$message="<font color='green'>您的操作已经成功....</font>";
$text="如果您的浏览器没有自动跳转，请点击这里";
$url="parts.php";
include 'tmp/success.htm';exit;
else:
$message="<font color='green'>删除失败,没找到该用户的UID....</font>";
$text="如果您的浏览器没有自动跳转，请点击这里";
$url="parts.php";
include 'tmp/error.htm';exit;
endif;